import os.path
import yaml


class ConfigParams:
    data = []

    def __init__(self, file=os.environ.get("CONFIG_FILE", "conf/config.yaml")):
        path = os.path.abspath(file)
        with open(path, encoding='utf-8') as file:
            self.data = yaml.safe_load(file)


config = ConfigParams()


def get_configs():
    return config.data
